<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>大北极联合体活动添加页面</title>
  <link rel="stylesheet" href="../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../yl/style.css" />
  <link rel="stylesheet" href="../../style/wangeditor.css" />
  <link rel="stylesheet" href="../../yl/mobile.css" />
  <link rel="stylesheet" href="../../yl/easyui.css" />
  <link rel="stylesheet" href="../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">
          {{action=='Add'?'添加大北极联合体活动信息':action=='Modify'?'修改大北极联合体活动信息':''}}
        </div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'party_organization_activities', 'form': 'dataForm' ,'primary_key':'Party_Organization_Activity_SerialNumber' })">
      <el-form :model="dataForm" ref="form" inline-message="true" style="width: 100%">
        <el-descriptions :column="1" size="large" border>
          <!-- 活动名称 -->
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">活动名称</div>
            </template>
            <el-form-item prop="Activity_Name" :rules="[{ required: true, message: '请输入活动名称', trigger: 'blur' }]">
              <el-input v-model="dataForm.Activity_Name" class="borderless-input" placeholder="请输入活动名称" />
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">所属组织</div>
            </template>
            <!-- 修改为级联选择器 -->
            <el-form-item prop="Party_Organization_SerialNumber"
              :rules="[{ required: true, message: '请选择所属组织', trigger: 'change' }]">
              <el-cascader v-model="cascaderValue" :options="cascaderOptions"
                :props="{ expandTrigger: 'hover', checkStrictly: true }" @change="handleCascaderChange"
                placeholder="请选择所属组织" class="borderless-input" style="width: 100%" clearable></el-cascader>
            </el-form-item>
          </el-descriptions-item>
          <!-- 在活动名称下方添加活动类型下拉框 -->
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">活动类型</div>
            </template>
            <el-form-item prop="Activity_Type" :rules="[{ required: true, message: '请选择活动类型', trigger: 'change' }]">
              <!-- 修改为带样式的输入框 -->
              <el-input v-model="dataForm.Activity_Type" placeholder="活动类型" disabled class="borderless-input"
                style=" color: #606266;" />
            </el-form-item>
          </el-descriptions-item>

          <!-- 活动内容 -->
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">活动内容</div>
            </template>
            <el-form-item prop="Activity_Content" :rules="[{ required: true, message: '请输入活动内容', trigger: 'blur' }]">
              <el-input type="textarea" rows="4" v-model="dataForm.Activity_Content" placeholder="请输入活动内容" />
            </el-form-item>
          </el-descriptions-item>


          <el-descriptions-item>
            <template #label>
              <div class="cell-item">活动日期</div>
            </template>
            <el-date-picker v-model="dataForm.Activity_Datetime" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
              class="borderless-input" type="date" placeholder="请选择活动日期" size="large"></el-date-picker>
          </el-descriptions-item>

          <!-- 活动地点 -->
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">活动地点</div>
            </template>
            <el-form-item prop="Activity_Location" :rules="[{ required: true, message: '请输入活动地点', trigger: 'blur' }]">
              <el-input v-model="dataForm.Activity_Location" placeholder="请输入活动地点" class="borderless-input" />
            </el-form-item>
          </el-descriptions-item>

          <input type="hidden" v-model="dataForm.Party_Organization_Activity_SerialNumber" />
          <input type="hidden" v-model="dataForm.Creater_SerialNumber" />
        </el-descriptions>
      </el-form>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../utils/utils.js"></script>
<script src="../../config/config.js"></script>
<script src="../../utils/compressor.js"></script>
<script src="../../utils/wangeditor.js"></script>
<script src="../../utils/mixins.js"></script>
<script src="../../yl/vue.js"></script>
<script src="../../yl/index.js"></script>
<script src="../../yl/zh-cn.mjs"></script>
<script src="../../yl/index.iife.min.js"></script>
<script src="../../yl/jquery.min.js"></script>
<script src="../../utils/jquery.cookie.js"></script>
<script src="../../yl/jquery.easyui.min.js"></script>
<script src="../../yl/jquery.easyui.mobile.js"></script>
<script src="../../yl/moment.min.js"></script>
<script src="../../api/request.js"></script>
<script src="js/add.js"></script>

</html>